import json

from selenium import webdriver
from selenium.webdriver.common.by import By
import time

url = 'https://pc-toutiao-python.itheima.net/#/login'
driver = webdriver.Chrome()

driver.get(url)
driver.maximize_window()

driver.find_element(By.XPATH, '//button[contains(@class,"el-button--primary")]').click()

cookies = driver.get_cookies()

print(cookies[0]['name'] + ":" + cookies[0]['value'])


time.sleep(50)
